#include <stdio.h>

int main() {
    int n, i = 1, j, sign = -1, this;
    double fact, sum = 0;
    printf("Input n: ");
    scanf("%d", &n);
    while(i <= n) {
        this = i * 2 - 1;
        fact = 1.0;
        for (j = 0; j < this; j++) {
            fact *= j + 1;
        }
        sign *= -1;
        printf("%lf ", sign * fact);
        sum += sign * fact; 
        i++;
    }
    printf("= %lf\n", sum);
    return 0;
}
